home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'ColnEdit.pas' rev: 3.00
-
- #ifndef ColnEditHPP
- #define ColnEditHPP
- #include <ComCtrls.hpp>
- #include <DsgnIntf.hpp>
- #include <ExtCtrls.hpp>
- #include <Menus.hpp>
- #include <StdCtrls.hpp>
- #include <DsgnWnds.hpp>
- #include <Forms.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <SysUtils.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Colnedit
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS TCollectionEditor;
- class PASCALIMPLEMENTATION TCollectionEditor : public Dsgnwnds::TDesignWindow
- {
- typedef Dsgnwnds::TDesignWindow inherited;
-
- __published:
- Menus::TPopupMenu* ColnEditPopup;
- Menus::TMenuItem* Add1;
- Menus::TMenuItem* Delete1;
- Menus::TMenuItem* MoveUp1;
- Menus::TMenuItem* MoveDown1;
- Menus::TMenuItem* ShowButtons1;
- Extctrls::TPanel* Panel3;
- Extctrls::TPanel* Panel1;
- Stdctrls::TButton* Add;
- Stdctrls::TButton* Delete;
- Stdctrls::TButton* MoveUp;
- Stdctrls::TButton* MoveDown;
- Comctrls::TListView* ListView1;
- Menus::TMenuItem* SelectAll1;
- void __fastcall AddClick(System::TObject* Sender);
- void __fastcall DeleteClick(System::TObject* Sender);
- void __fastcall ListView1Click(System::TObject* Sender);
- void __fastcall FormKeyPress(System::TObject* Sender, char &Key);
- void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
- void __fastcall MoveUpClick(System::TObject* Sender);
- void __fastcall ListView1DragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState
- State, bool &Accept);
- void __fastcall ListView1DragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
- void __fastcall MoveDownClick(System::TObject* Sender);
- void __fastcall ShowButtons1Click(System::TObject* Sender);
- void __fastcall FormCreate(System::TObject* Sender);
- void __fastcall FormDestroy(System::TObject* Sender);
- void __fastcall FormResize(System::TObject* Sender);
- void __fastcall ListView1Change(System::TObject* Sender, Comctrls::TListItem* Item, Comctrls::TItemChange
- Change);
- void __fastcall SelectAll1Click(System::TObject* Sender);
-
- private:
- System::AnsiString FCollectionPropertyName;
- int FMinWidth;
- int FMinHeight;
- int FStateLock;
- Classes::TList* FItemIDList;
- System::AnsiString FCollectionClassName;
- bool FSelectionError;
- System::AnsiString __fastcall GetRegKey(void);
- void __fastcall SetCollectionPropertyName(const System::AnsiString Value);
- MESSAGE void __fastcall WMGetMinMaxInfo(Messages::TWMGetMinMaxInfo &Msg);
- MESSAGE void __fastcall AMDeferUpdate(void *Msg);
-
- protected:
- DYNAMIC void __fastcall Activated(void);
- void __fastcall LockState(void);
- void __fastcall UnlockState(void);
- __property int StateLock = {read=FStateLock, nodefault};
-
- public:
- Classes::TCollection* Collection;
- Classes::TComponent* Component;
- virtual void __fastcall ComponentDeleted(Classes::TComponent* Component);
- virtual void __fastcall FormClosed(Forms::TCustomForm* AForm);
- virtual void __fastcall FormModified(void);
- System::AnsiString __fastcall GetItemName(int Index, int ItemIndex);
- void __fastcall GetSelection(void);
- virtual void __fastcall SelectionChanged(Dsgnintf::TComponentList* ASelection);
- HIDESBASE void __fastcall SetSelection(void);
- void __fastcall UpdateListbox(void);
- __property System::AnsiString CollectionPropertyName = {read=FCollectionPropertyName, write=SetCollectionPropertyName
- };
- public:
- /* TDesignWindow.Create */ __fastcall virtual TCollectionEditor(Classes::TComponent* AOwner) : Dsgnwnds::
- TDesignWindow(AOwner) { }
- /* TDesignWindow.Destroy */ __fastcall virtual ~TCollectionEditor(void) { }
-
- public:
- /* TCustomForm.CreateNew */ __fastcall TCollectionEditor(Classes::TComponent* AOwner, int Dummy) :
- Dsgnwnds::TDesignWindow(AOwner, Dummy) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TCollectionEditor(HWND ParentWindow) : Dsgnwnds::TDesignWindow(
- ParentWindow) { }
-
- };
-
- typedef System::TMetaClass*TCollectionEditorClass;
-
- class DELPHICLASS TCollectionProperty;
- class PASCALIMPLEMENTATION TCollectionProperty : public Dsgnintf::TClassProperty
- {
- typedef Dsgnintf::TClassProperty inherited;
-
- public:
- virtual void __fastcall Edit(void);
- virtual Dsgnintf::TPropertyAttributes __fastcall GetAttributes(void);
- virtual System::TMetaClass* __fastcall GetEditorClass(void);
- public:
- /* TPropertyEditor.Destroy */ __fastcall virtual ~TCollectionProperty(void) { }
-
- public:
- /* TObject.Create */ __fastcall TCollectionProperty(void) : Dsgnintf::TClassProperty() { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define AM_DeferUpdate (Word)(1124)
- extern PACKAGE TCollectionEditor* __fastcall ShowCollectionEditorClass(Forms::TDesigner* ADesigner,
- System::TMetaClass* CollectionEditorClass, Classes::TComponent* AComponent, Classes::TCollection* ACollection
- , const System::AnsiString PropertyName);
- extern PACKAGE void __fastcall ShowCollectionEditor(Forms::TDesigner* ADesigner, Classes::TComponent*
- AComponent, Classes::TCollection* ACollection, const System::AnsiString PropertyName);
-
- } /* namespace Colnedit */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Colnedit;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // ColnEdit
-